package com.firefightingiot.firefightingiot.web.mapper;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.firefightingiot.firefightingiot.model.DeviceWeChat;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @author Yang yu
 * @version 1.0
 * @date 2020/8/24 10:14
 */
@Mapper
public interface DeviceWeChatMapper extends BaseMapper<DeviceWeChat> {
    /**
     * 根据设备号查询openid
     * @param jsonObject
     * @return
     */
    List<String> openidList(JSONObject jsonObject);

    List<String> getOpenIdList(String businessId);

    List<Map<String,Object>> getBusinessLists();
}
